package com.edu.study.base.activationCode.domain;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 激活码对象 tb_activation_code
 * 
 * @author jjt
 * @date 2021-03-01
 */
public class TbActivationCodeRy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 业务分类(1:绘本 2:视频) */
    @Excel(name = "业务分类(1:绘本 2:视频)")
    private String catalogType;

    /** 归属业务id */
    @Excel(name = "归属业务id")
    private String belongBussId;

    /** 归属业务表名称 */
    @Excel(name = "归属业务表名称")
    private String belongBussTableName;

    /** 激活码二维码url */
    @Excel(name = "激活码二维码url")
    private String qrCodeUrl;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 适用范围分类 */
    @Excel(name = "适用范围分类")
    private String applicationScopeType;

    /** 激活码 */
    @Excel(name = "激活码")
    private String materialSequenceNum;

    /** 是否已使用 */
    @Excel(name = "是否已使用")
    private String materialIfUse;

    /** 有效期周期类型 */
    @Excel(name = "有效期周期类型")
    private String effectiveTermCycleType;

    /** 有效期值 */
    @Excel(name = "有效期值")
    private Long effectiveTermValue;

    /** 生成类型(1:仅生成激活码 2:生成激活码并导出excel) */
    @Excel(name = "生成类型(1:仅生成激活码 2:生成激活码并导出excel)")
    private String generateType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;


    private Integer genCount;

    //激活时间
    private Date generateDate;

    //截止时间
    private Date endDate;

    //手机号
    private String phone;

    //绘本名称
    private String pbookName;
    //激活人姓名
    private String nickName;

    private List<String> ids;
    
    private String appUserId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCatalogType(String catalogType) 
    {
        this.catalogType = catalogType;
    }

    public String getCatalogType() 
    {
        return catalogType;
    }
    public void setBelongBussId(String belongBussId) 
    {
        this.belongBussId = belongBussId;
    }

    public String getBelongBussId() 
    {
        return belongBussId;
    }
    public void setBelongBussTableName(String belongBussTableName) 
    {
        this.belongBussTableName = belongBussTableName;
    }

    public String getBelongBussTableName() 
    {
        return belongBussTableName;
    }
    public void setQrCodeUrl(String qrCodeUrl) 
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrCodeUrl() 
    {
        return qrCodeUrl;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setApplicationScopeType(String applicationScopeType) 
    {
        this.applicationScopeType = applicationScopeType;
    }

    public String getApplicationScopeType() 
    {
        return applicationScopeType;
    }
    public void setMaterialSequenceNum(String materialSequenceNum) 
    {
        this.materialSequenceNum = materialSequenceNum;
    }

    public String getMaterialSequenceNum() 
    {
        return materialSequenceNum;
    }
    public void setMaterialIfUse(String materialIfUse) 
    {
        this.materialIfUse = materialIfUse;
    }

    public String getMaterialIfUse() 
    {
        return materialIfUse;
    }
    public void setEffectiveTermCycleType(String effectiveTermCycleType) 
    {
        this.effectiveTermCycleType = effectiveTermCycleType;
    }

    public String getEffectiveTermCycleType() 
    {
        return effectiveTermCycleType;
    }
    public void setEffectiveTermValue(Long effectiveTermValue) 
    {
        this.effectiveTermValue = effectiveTermValue;
    }

    public Long getEffectiveTermValue() 
    {
        return effectiveTermValue;
    }
    public void setGenerateType(String generateType) 
    {
        this.generateType = generateType;
    }

    public String getGenerateType() 
    {
        return generateType;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }


    public Integer getGenCount() {
        return genCount;
    }

    public void setGenCount(Integer genCount) {
        this.genCount = genCount;
    }

    public Date getGenerateDate() {
        return generateDate;
    }

    public void setGenerateDate(Date generateDate) {
        this.generateDate = generateDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPbookName() {
        return pbookName;
    }

    public void setPbookName(String pbookName) {
        this.pbookName = pbookName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public List<String> getIds() {
        return ids;
    }

    public void setIds(List<String> ids) {
        this.ids = ids;
    }
    
    

    public String getAppUserId() {
		return appUserId;
	}

	public void setAppUserId(String appUserId) {
		this.appUserId = appUserId;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("catalogType", getCatalogType())
            .append("belongBussId", getBelongBussId())
            .append("belongBussTableName", getBelongBussTableName())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("batchNo", getBatchNo())
            .append("applicationScopeType", getApplicationScopeType())
            .append("materialSequenceNum", getMaterialSequenceNum())
            .append("materialIfUse", getMaterialIfUse())
            .append("effectiveTermCycleType", getEffectiveTermCycleType())
            .append("effectiveTermValue", getEffectiveTermValue())
            .append("generateType", getGenerateType())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateDate", getUpdateDate())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
